//var money = 5000;
var money = [];
var num = 0;
//var one = Math.round(Math.random())*100;
var two = Math.floor(Math.random()*10000)/100;
//var three = one+two
//console.log(one)
console.log(two)
//console.log(three)
function ATM(){
	for(let i=0;i<88;i++){
//		one = Math.round(Math.random())*100;
		two = Math.floor(Math.random()*10000)/100;
		while(two>80||two<20){
			two = Math.floor(Math.random()*10000)/100;
		}
//		three = one+two;
		money[i]=two;
		num = num + two;
		if(num>5000){
			console.log(num)
			money = [];
			num = 0;
			ATM();
		}
	}
}
ATM();
console.log(money)

var add = $("#add")[0];
var ranking_list = [];
$(".add").click(function(){
	console.log(add.value)
	
})
function addranking(company){
	ranking_list.push(company)
	let rankingli = document.createElement("li");
}
